﻿using Ndns.ServerHost.Abstractions.Services;

namespace Ndns.ConsoleLogger
{
    class ConsoleLoggerProvider : ILoggerProvider
    {
        private readonly LogLevel _minimumLogLevel;

        public ConsoleLoggerProvider()
        {
            _minimumLogLevel = LogLevel.None;
        }
        public ConsoleLoggerProvider(LogLevel minimumLogLevel)
        {
            _minimumLogLevel = minimumLogLevel;
        }

        public ILogger GetLogger(string componentName)
        {
            return new ConsoleLogger(componentName, _minimumLogLevel);
        }
    }
}
